package com.zbbt.sportslottery.ui.widget.recycler;

import android.support.v7.widget.RecyclerView;
import android.view.View;
import android.view.View.OnClickListener;

public class RecyclerItemViewHolder extends RecyclerView.ViewHolder implements OnClickListener {
	private MyItemClickListener clickListener;

	public RecyclerItemViewHolder(final View view, MyItemClickListener clickListener) {
		super(view);
		this.clickListener = clickListener;
		view.setOnClickListener(this);
	}

	@Override
	public void onClick(View v) {
		if (clickListener != null) {
			clickListener.onitemClick(v, getLayoutPosition());
		}
	}

}
